package com.jl.scr;

import java.util.ArrayList;
import java.util.List;

public class Batch {

	private List<SCR> list = new ArrayList<SCR>();

	public Batch append(SCR scr) {
		list.add(scr);
		return this;
	}
	
	public SCR get(int index){
		return list.get(index);
	}
	
	public int size(){
		return list.size();
	}
	
	public void add(Batch batch){
		int size = batch.size();
		for(int i = 0 ; i < size ; i++){
			list.add(batch.get(i));
		}
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		for(SCR scr : list){
			builder.append(scr.toString());
		}
		return builder.toString();
	}

}
